package com.hcy.controller;

import com.hcy.reasult.Result;
import com.hcy.service.HotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: LiJun
 * @Date: 2025/7/23 17:11
 */
@RestController
@RequestMapping("/hot")
public class SpiderController {

    @Autowired
    private HotService hotService;

    @GetMapping("/baiduHot")
    public Result baiduSpider() {
        return hotService.getBaiduHot();
    }
}
